From: emellor@ewan Date: Sun, 18 Sep 2005 15:00:24 +0000 (+0100) Subject: Move definition of xc and xend to avoid confusing pylint. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~16780^2~47^2~4 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=4fbe918e1230d126a3b070bab6bed632d09a7373;p=xen.git Move definition of xc and xend to avoid confusing pylint. Signed-off-by: Ewan Mellor --- diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 8bc3d1a1c0..9dc3bda8fb 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -28,10 +28,10 @@ import time import threading import errno -import xen.lowlevel.xc; xc = xen.lowlevel.xc.new() +import xen.lowlevel.xc from xen.util.blkif import blkdev_uname_to_file -from xen.xend.server import SrvDaemon; xend = SrvDaemon.instance() +from xen.xend.server import SrvDaemon from xen.xend.server.channel import EventChannel from xen.xend import sxp @@ -93,6 +93,12 @@ SIF_NET_BE_DOMAIN = (1<<5) SIF_TPM_BE_DOMAIN = (1<<7) +xc = xen.lowlevel.xc.new() + + +xend = SrvDaemon.instance() + + def domain_exists(name): # See comment in XendDomain constructor. xd = get_component('xen.xend.XendDomain')